package indi.henry.demo.service;

/**
 * URL shorten service interface
 * 
 * @author Henry Hu
 */
public interface ShortenService {

    /**
     * The API for shortening the given URL, which will convert the URL by
     * formatting first
     * 
     * @param url given from user
     * @return The shortened URL
     */
    public String convertUrl(String url);

    /**
     * Main function entrypoint for shortening the URL
     * 
     * @param url to be shortened
     * @return The URL after shortening handling
     */
    public String shortUrl(String url);
}
